﻿using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.ServiceModel.Web;
using System.Text;
using System.Threading.Tasks;

namespace OpenApi
{
	/// <summary>
	/// 验证接口
	/// </summary>
	public interface IAuthProvider
	{
		/// <summary>
		/// 认证
		/// </summary>
		/// <param name="authParameters">用于验证的参数集。</param>
		/// <param name="openness">资源公开度</param>
		/// <returns></returns>
		AuthResult Authenticate(WebOperationContext context, ResourceOpenness openness);
	}
}
